package net.sf.rose.mail;

import java.util.Vector;

public class SMTPMailBean {

	private String[] to; // 收件人；如果多个收件人，则以逗号隔开
	private String subject; // 邮件主题
	private String content; // 邮件正文
	Vector<String> file; // 多个附件
	private String filename; // 附件的文件名

	public String[] getTo() {
		return to;
	}

	public void setTo(String[] to) {
		this.to = to;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public Vector<String> getFile() {
		return file;
	}

	public void attachFile(String fileName) {
		if (file == null)
			file = new Vector<String>();
		file.addElement(fileName);
	}

}
